<script setup name="Child">
import { ref } from 'vue';
import Dialog from './Dialog.vue'

const showDialog = ref(false)
</script>
<template>
  <div>
    Child
    <!-- <Teleport to="body"> -->
    <Teleport to="#xxx">
      <Dialog v-if="showDialog" />
    </Teleport>
    <button @click="showDialog = !showDialog">出来弹框</button>
  </div>
</template>
